package rest.jbpm.wrappers.refs;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;

@XmlType(name="task")
public class TaskRef {
	
	private static String base;
	private String taskId;

	protected TaskRef() {
		
	}
	
	public TaskRef(String taskId, String baseUri) {
		
		this.taskId = taskId;
		this.base = baseUri;
	}
	
	@XmlAttribute(name="ref", required=true)
	public String getDeploymen() {
		return base + "exec/task/" + taskId;
	}

}
